<?php
/**
 * Author: lf
 * Blog: https://blog.szdma.com
 * Email: job@szdma.com
 * Created at: 2017-03-15 21:16.
 */

namespace backend\assets;

use yii;

class AppAsset extends \yii\web\AssetBundle
{
    public $css = [
    ];

    public $js = [
    ];

    public $depends = [
        'yii\web\YiiAsset',
        'backend\assets\PubAsset',
    ];

    public function init()
    {
        parent::init();
        if ('' !== yii::$app->getRequest()->getBaseUrl()) {
            $this->sourcePath = '@backend/web/static/private';
        }
    }
}
